<h1><%=h @user.login %>'s details</h1>

<div id="content_left">
	<p>
		<b>Login:</b>
		<%=h @user.login %>
	</p>
	<p>
		<b>Email:</b>
		<%=h @user.email %>
	</p>
	<p>
		<b>Name:</b>
		<%=h @user.name %>
		<%=h @user.middle_initial %>
		<%=h @user.lastname %>
	</p>
	<p>
		<b>Registered on: </b>
		<%= h @user.created_at.to_formatted_s(:long) %>
	</p>
	
	<%= link_to 'Edit', edit_user_path(@user) %> |
	<%= link_to 'Back', users_path %>

</div>

<div id="content_right">
	<h3>Working on</h3>
		<% for project in @user.joined_projects %>
		<%=h project.title %><br />
	<% end %>
	</table>
</div>

<div id="clear"></div>

